/*
 * @Description: 
 * @Author: charles
 * @Date: 2021-11-19 09:53:44
 * @LastEditors: charles
 * @LastEditTime: 2021-11-19 10:02:50
 */
enum Season{
  // 成员属性/实例属性
  spring = '春',
  summer = '夏',
  fall ='秋',
  winter ='冬'
}
console.log(Season);
console.log(Season.spring);

enum Color {RED='红色',GREEN='绿色',BLUE='蓝色'};

function sayColor(color:Color){
  console.log('三原色之一：',color);
}

sayColor(Color.RED)